package com.coolingme.chain;

/**
 * 链式建造者测试
 *
 * @author wangyue
 * @date 2020/9/30 11:04
 */
public class Test {

    public static void main(String[] args) {
        CourseChainBuilder chainBuilder = new CourseChainBuilder()
                .addName("Java架构师课程")
                .addVideo("http://www.XXXXX.com/video?id=123456")
                .addNote("努力，奋斗");

        CourseChainBuilder.Course course = chainBuilder.build();
        System.out.println(course);
    }

}
